
		

-- D:\GOA\reslibrary\templete\res\modal\modalmgr.xsl 58
gr_module("gm_xinbanchunzhongyun")


mcgfprocessmgr = inherit(GmSql.list,GmBase.CallBack):name("mcgfprocessmgr")



mcgfprocessmgr.init = function (self,pagecount)

	local top = self
	
	
	GmSql.list.init(self,gInfo["path"]..'/'..g_local_db_name,'czy_process')
	GmBase.CallBack.init(self)
	
	self.baseurl = ''

	self.idPair = {}
	self.idPair['prev'] = '0'
	self.idPair['next'] = '0'
	
	self.pageCount = pagecount or 10
	self.totalPage = 0
	
	self:reset_maxminid('czy_process','id')
	
	
	self.action = {}
	self.op  = {}
	
	
	
	-----------------------------
	self.action['cgfprocessdetail'] = {} 	
	-------
	self.op['cgfprocessdetail'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfprocessdetail()
		for a,b in pairs(top.action['cgfprocessdetail']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfprocessdetail(newpostparam)
		
	end	
		
  self.action['cgfprocessdetail']['id'] = { ['title'] = 'ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessdetail']['step_id'] = { ['title'] = '鐜妭ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessdetail']['order_id'] = { ['title'] = '璁㈠崟ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '16' }	
  self.action['cgfprocessdetail']['order_code'] = { ['title'] = '鐢熶骇鎵瑰彿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessdetail']['entire_type'] = { ['title'] = 'entire_type' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessdetail']['quantity'] = { ['title'] = '鏁伴噺' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '13' }	
  self.action['cgfprocessdetail']['price'] = { ['title'] = '鍗曚环' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessdetail']['money'] = { ['title'] = '閲戦' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '14' }	
  self.action['cgfprocessdetail']['worker_id'] = { ['title'] = '闃叉鍙樻洿鍛樺伐鍚嶇О瀵艰嚧璁′欢鏈夎' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessdetail']['worker'] = { ['title'] = '璐熻矗鐨勮溅闂村憳宸?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessdetail']['status'] = { ['title'] = '状态' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessdetail']['start_time'] = { ['title'] = '开始时间' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessdetail']['time'] = { ['title'] = '时间' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessdetail']['finish_date'] = { ['title'] = '瀹屽伐鏃ユ湡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessdetail']['disable'] = { ['title'] = '1璇ョ幆鑺備笉瀛樺湪' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgfprocessdetail']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessdetail']['complete_date'] = { ['title'] = '棰勮瀹屾垚鏃堕棿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessdetail']['line'] = { ['title'] = 'line' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfprocessdetail']['product_name'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessdetail']['product_code'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessdetail']['customer_name'] = { ['title'] = '鍐椾綑customer琛╪ame,鎻愰珮鏌ヨ鏁堢巼' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessdetail']['order_status'] = { ['title'] = '鍐椾綑order琛?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessdetail']['handler_id'] = { ['title'] = 'handler_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessdetail']['handler'] = { ['title'] = 'handler' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }
  self.action['cgfprocessdetail']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfprocessitem'] = {} 	
	-------
	self.op['cgfprocessitem'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfprocessitem()
		for a,b in pairs(top.action['cgfprocessitem']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfprocessitem(newpostparam)
		
	end	
		
  self.action['cgfprocessitem']['id'] = { ['title'] = 'ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessitem']['step_id'] = { ['title'] = '鐜妭ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessitem']['order_id'] = { ['title'] = '璁㈠崟ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '16' }	
  self.action['cgfprocessitem']['order_code'] = { ['title'] = '鐢熶骇鎵瑰彿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessitem']['entire_type'] = { ['title'] = 'entire_type' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessitem']['quantity'] = { ['title'] = '鏁伴噺' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '13' }	
  self.action['cgfprocessitem']['price'] = { ['title'] = '鍗曚环' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessitem']['money'] = { ['title'] = '閲戦' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '14' }	
  self.action['cgfprocessitem']['worker_id'] = { ['title'] = '闃叉鍙樻洿鍛樺伐鍚嶇О瀵艰嚧璁′欢鏈夎' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessitem']['worker'] = { ['title'] = '璐熻矗鐨勮溅闂村憳宸?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessitem']['status'] = { ['title'] = '状态' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessitem']['start_time'] = { ['title'] = '开始时间' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessitem']['time'] = { ['title'] = '时间' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessitem']['finish_date'] = { ['title'] = '瀹屽伐鏃ユ湡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessitem']['disable'] = { ['title'] = '1璇ョ幆鑺備笉瀛樺湪' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgfprocessitem']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessitem']['complete_date'] = { ['title'] = '棰勮瀹屾垚鏃堕棿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessitem']['line'] = { ['title'] = 'line' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfprocessitem']['product_name'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessitem']['product_code'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessitem']['customer_name'] = { ['title'] = '鍐椾綑customer琛╪ame,鎻愰珮鏌ヨ鏁堢巼' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessitem']['order_status'] = { ['title'] = '鍐椾綑order琛?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessitem']['handler_id'] = { ['title'] = 'handler_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessitem']['handler'] = { ['title'] = 'handler' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }
  self.action['cgfprocessitem']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfprocessmodify'] = {} 	
	-------
	self.op['cgfprocessmodify'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfprocessmodify()
		for a,b in pairs(top.action['cgfprocessmodify']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfprocessmodify(newpostparam)
		
	end	
		
  self.action['cgfprocessmodify']['id'] = { ['title'] = 'ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessmodify']['step_id'] = { ['title'] = '鐜妭ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessmodify']['order_id'] = { ['title'] = '璁㈠崟ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '16' }	
  self.action['cgfprocessmodify']['order_code'] = { ['title'] = '鐢熶骇鎵瑰彿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessmodify']['entire_type'] = { ['title'] = 'entire_type' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessmodify']['quantity'] = { ['title'] = '鏁伴噺' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '13' }	
  self.action['cgfprocessmodify']['price'] = { ['title'] = '鍗曚环' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessmodify']['money'] = { ['title'] = '閲戦' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '14' }	
  self.action['cgfprocessmodify']['worker_id'] = { ['title'] = '闃叉鍙樻洿鍛樺伐鍚嶇О瀵艰嚧璁′欢鏈夎' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessmodify']['worker'] = { ['title'] = '璐熻矗鐨勮溅闂村憳宸?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessmodify']['status'] = { ['title'] = '状态' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocessmodify']['start_time'] = { ['title'] = '开始时间' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessmodify']['time'] = { ['title'] = '时间' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocessmodify']['finish_date'] = { ['title'] = '瀹屽伐鏃ユ湡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessmodify']['disable'] = { ['title'] = '1璇ョ幆鑺備笉瀛樺湪' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgfprocessmodify']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocessmodify']['complete_date'] = { ['title'] = '棰勮瀹屾垚鏃堕棿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocessmodify']['line'] = { ['title'] = 'line' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfprocessmodify']['product_name'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessmodify']['product_code'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessmodify']['customer_name'] = { ['title'] = '鍐椾綑customer琛╪ame,鎻愰珮鏌ヨ鏁堢巼' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocessmodify']['order_status'] = { ['title'] = '鍐椾綑order琛?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocessmodify']['handler_id'] = { ['title'] = 'handler_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocessmodify']['handler'] = { ['title'] = 'handler' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }
  self.action['cgfprocessmodify']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfprocesslist'] = {} 	
	-------
	self.op['cgfprocesslist'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfprocesslist()
		for a,b in pairs(top.action['cgfprocesslist']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfprocesslist(newpostparam)
		
	end	
		
  self.action['cgfprocesslist']['id'] = { ['title'] = 'ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesslist']['step_id'] = { ['title'] = '鐜妭ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocesslist']['order_id'] = { ['title'] = '璁㈠崟ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '16' }	
  self.action['cgfprocesslist']['order_code'] = { ['title'] = '鐢熶骇鎵瑰彿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocesslist']['entire_type'] = { ['title'] = 'entire_type' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocesslist']['quantity'] = { ['title'] = '鏁伴噺' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '13' }	
  self.action['cgfprocesslist']['price'] = { ['title'] = '鍗曚环' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesslist']['money'] = { ['title'] = '閲戦' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '14' }	
  self.action['cgfprocesslist']['worker_id'] = { ['title'] = '闃叉鍙樻洿鍛樺伐鍚嶇О瀵艰嚧璁′欢鏈夎' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesslist']['worker'] = { ['title'] = '璐熻矗鐨勮溅闂村憳宸?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocesslist']['status'] = { ['title'] = '状态' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocesslist']['start_time'] = { ['title'] = '开始时间' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesslist']['time'] = { ['title'] = '时间' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocesslist']['finish_date'] = { ['title'] = '瀹屽伐鏃ユ湡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesslist']['disable'] = { ['title'] = '1璇ョ幆鑺備笉瀛樺湪' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgfprocesslist']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocesslist']['complete_date'] = { ['title'] = '棰勮瀹屾垚鏃堕棿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesslist']['line'] = { ['title'] = 'line' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfprocesslist']['product_name'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesslist']['product_code'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesslist']['customer_name'] = { ['title'] = '鍐椾綑customer琛╪ame,鎻愰珮鏌ヨ鏁堢巼' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesslist']['order_status'] = { ['title'] = '鍐椾綑order琛?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocesslist']['handler_id'] = { ['title'] = 'handler_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesslist']['handler'] = { ['title'] = 'handler' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }
  self.action['cgfprocesslist']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfprocesspost'] = {} 	
	-------
	self.op['cgfprocesspost'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfprocesspost()
		for a,b in pairs(top.action['cgfprocesspost']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfprocesspost(newpostparam)
		
	end	
		
  self.action['cgfprocesspost']['id'] = { ['title'] = 'ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesspost']['step_id'] = { ['title'] = '鐜妭ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocesspost']['order_id'] = { ['title'] = '璁㈠崟ID' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '16' }	
  self.action['cgfprocesspost']['order_code'] = { ['title'] = '鐢熶骇鎵瑰彿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocesspost']['entire_type'] = { ['title'] = 'entire_type' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocesspost']['quantity'] = { ['title'] = '鏁伴噺' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '13' }	
  self.action['cgfprocesspost']['price'] = { ['title'] = '鍗曚环' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesspost']['money'] = { ['title'] = '閲戦' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '14' }	
  self.action['cgfprocesspost']['worker_id'] = { ['title'] = '闃叉鍙樻洿鍛樺伐鍚嶇О瀵艰嚧璁′欢鏈夎' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesspost']['worker'] = { ['title'] = '璐熻矗鐨勮溅闂村憳宸?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocesspost']['status'] = { ['title'] = '状态' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '4' }	
  self.action['cgfprocesspost']['start_time'] = { ['title'] = '开始时间' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesspost']['time'] = { ['title'] = '时间' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '3' }	
  self.action['cgfprocesspost']['finish_date'] = { ['title'] = '瀹屽伐鏃ユ湡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesspost']['disable'] = { ['title'] = '1璇ョ幆鑺備笉瀛樺湪' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgfprocesspost']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfprocesspost']['complete_date'] = { ['title'] = '棰勮瀹屾垚鏃堕棿' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfprocesspost']['line'] = { ['title'] = 'line' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfprocesspost']['product_name'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesspost']['product_code'] = { ['title'] = '鍚岀悊' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesspost']['customer_name'] = { ['title'] = '鍐椾綑customer琛╪ame,鎻愰珮鏌ヨ鏁堢巼' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfprocesspost']['order_status'] = { ['title'] = '鍐椾綑order琛?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfprocesspost']['handler_id'] = { ['title'] = 'handler_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfprocesspost']['handler'] = { ['title'] = 'handler' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }
  self.action['cgfprocesspost']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
  
 
  	
  
	self.session = {}
	
end   





mcgfprocessmgr.check_fields_validate = function(self,key,postparam)
	local checkfunc = {}
	checkfunc['t'] = function(fm,value)
		return true
	end
	checkfunc['min'] = function(fm,value)
		if string.len(value) < tonumber(fm) then
			return false
		end
		return true
	end
	checkfunc['max'] = function(fm,value)
		if string.len(value) > tonumber(fm) then
			return false
		end
		return true
	end
	local format = self.action[key]
	for fkey,fvalue in pairs(postparam) do
		if format[fkey] ~= nil then
			for fmkey,fmvalue in pairs(format[fkey]) do
				if checkfunc[fmkey] ~= nil then
					if checkfunc[fmkey](fmvalue,fvalue) == false then
						return false,tostring(format[fkey]['title']).." "..tostring(fmkey).." "..tostring(fmvalue).." error"
					end
				end
			end
		end
	end
	return true,""
end 


 
mcgfprocessmgr.get_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key]
end

mcgfprocessmgr.has_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key] ~= nil
end
 
 
mcgfprocessmgr.add_session = function(self,key,ses)
	self.session[key] = ses
end


mcgfprocessmgr.add_ui = function(self,key,ui)
	self.uis[key] = ui
end




-- todo
mcgfprocessmgr.run = function(self,key,ui)
	if self.action[key] ~= nil and self.op[key] ~= nil then
		local tb = {}
		for k,v in pairs(self.action[key]) do
			if ui[k] ~= nil and type(ui[k]) == 'table' and ui[k].get_text then
				tb[k] = ui[k]:get_text()
			else
				print('run error',key,k)
			end
		end
		local success,msg = self:check_fields_validate(key,tb)
		if success then
			self.op[key](tb,ui)
		else
			ui.hostWindow:showMsg(msg)
		end		
	else
		print('run error self.action',key)
	end
end


------------------------------------------------------------------------------------


mcgfprocessmgr.get_net_page = function(self,netmethon,attrs)
	local top = self	
	local discuz = GmBase.net.get_instance()
	local methon = netmethon
	if methon ~= nil and discuz[methon] then
		print('mcgfprocessmgr.get_net_page ',methon)
		local tbname,callbackey,tb = discuz[netmethon](discuz)
		for k,v in pairs(attrs) do
			tb[k] = attrs[k]
		end
		discuz[netmethon](discuz,tb)
	else
		print('mcgfprocessmgr.get_net_page error ',methon)
	end		
end




mcgfprocessmgr.get_prev_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgfprocesslist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page - 1		

		if attrs.page < 1 then
			attrs.page = 1
		end

		self:get_net_page(ui.netmethon,attrs)
	end
end


mcgfprocessmgr.get_next_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgfprocesslist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page + 1
		self:get_net_page(ui.netmethon,attrs)
	end
end

------------------------------------------------------------------------------------



mcgfprocessmgr.init_table = function(self)
	--[[
	local tablefield = {}
	
	--number
	tablefield['id'] = { ["i"] = 11, }
    
	--number
	tablefield['step_id'] = { ["i"] = 3, }
    
	--number
	tablefield['order_id'] = { ["i"] = 16, }
    
	--string
	tablefield['order_code'] = { ["v"] = 255, }
    
	--number
	tablefield['entire_type'] = { ["i"] = 4, }
    
	--string
	tablefield['quantity'] = { ["v"] = 13, }
    
	--string
	tablefield['price'] = { ["v"] = 11, }
    
	--string
	tablefield['money'] = { ["v"] = 14, }
    
	--number
	tablefield['worker_id'] = { ["i"] = 11, }
    
	--string
	tablefield['worker'] = { ["v"] = 64, }
    
	--number
	tablefield['status'] = { ["i"] = 4, }
    
	--string
	tablefield['start_time'] = { ["v"] = 20, }
    
	--number
	tablefield['time'] = { ["i"] = 3, }
    
	--string
	tablefield['finish_date'] = { ["v"] = 20, }
    
	--number
	tablefield['disable'] = { ["i"] = 1, }
    
	--string
	tablefield['note'] = { ["v"] = 255, }
    
	--string
	tablefield['complete_date'] = { ["v"] = 20, }
    
	--number
	tablefield['line'] = { ["i"] = 2, }
    
	--string
	tablefield['product_name'] = { ["v"] = 32, }
    
	--string
	tablefield['product_code'] = { ["v"] = 32, }
    
	--string
	tablefield['customer_name'] = { ["v"] = 32, }
    
	--string
	tablefield['order_status'] = { ["v"] = 64, }
    
	--number
	tablefield['handler_id'] = { ["i"] = 11, }
    
	--string
	tablefield['handler'] = { ["v"] = 32, }
    
	self:create_table( self.tablename, tablefield)
	]]
	self:initTableStruct()
end


	